package in.cent.client.gui;

import in.cent.client.main.MainApplet;

import java.awt.Graphics2D;

public abstract class Display
{
	private MainApplet applet;

	public void registerApplet(MainApplet applet)
	{
		this.applet = applet;
	}

	public boolean repaint()
	{
		if (applet == null)
			return false;
		
		applet.repaint();
		
		return true;
	}

	public abstract void draw(Graphics2D g);
}
